package com.ruoyi.quartz.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.quartz.mapper.StockBearMapper;
import com.ruoyi.quartz.domain.StockBear;
import com.ruoyi.quartz.service.IStockBearService;
import com.ruoyi.common.core.text.Convert;

/**
 * 变化趋势Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-12-19
 */
@Service
public class StockBearServiceImpl implements IStockBearService 
{
    @Autowired
    private StockBearMapper stockBearMapper;

    /**
     * 查询变化趋势
     * 
     * @param id 变化趋势主键
     * @return 变化趋势
     */
    @Override
    public StockBear selectStockBearById(Long id)
    {
        return stockBearMapper.selectStockBearById(id);
    }

    /**
     * 查询变化趋势列表
     * 
     * @param stockBear 变化趋势
     * @return 变化趋势
     */
    @Override
    public List<StockBear> selectStockBearList(StockBear stockBear)
    {
        return stockBearMapper.selectStockBearList(stockBear);
    }

    /**
     * 新增变化趋势
     * 
     * @param stockBear 变化趋势
     * @return 结果
     */
    @Override
    public int insertStockBear(StockBear stockBear)
    {
        return stockBearMapper.insertStockBear(stockBear);
    }

    /**
     * 修改变化趋势
     * 
     * @param stockBear 变化趋势
     * @return 结果
     */
    @Override
    public int updateStockBear(StockBear stockBear)
    {
        return stockBearMapper.updateStockBear(stockBear);
    }

    /**
     * 批量删除变化趋势
     * 
     * @param ids 需要删除的变化趋势主键
     * @return 结果
     */
    @Override
    public int deleteStockBearByIds(String ids)
    {
        return stockBearMapper.deleteStockBearByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除变化趋势信息
     * 
     * @param id 变化趋势主键
     * @return 结果
     */
    @Override
    public int deleteStockBearById(Long id)
    {
        return stockBearMapper.deleteStockBearById(id);
    }
}
